package com.dsj.gxrd.modules.activity.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dsj.gxrd.common.MyBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author songpin566
 * @date 2023/10/07
 **/
@Data
@ApiModel("计划安排")
@TableName("rd_plan_management")
public class RdPlanManagement extends MyBaseEntity<String> {

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("承办单位")
    private String organizer;
    @ApiModelProperty("责任专攻")
    private String responsibilityOrg;
    @ApiModelProperty("监督类别")
    private String supervisionCategory;
    @ApiModelProperty("监督内容")
    private String supervisionContent;
    @ApiModelProperty("抄送")
    private String cc;
    @ApiModelProperty("印发")
    private String provoke;
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date startTime;
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date endTime;
    @ApiModelProperty("删除")
    @TableLogic
    private Integer delFlag;

}
